public class Dog {
    public String name;
    public int age;
    public String color;
    public void eatFood(){
        System.out.println(name + "正在吃食物");
    }
    public void bark(){
        System.out.println(name+"旺旺");
    }

    public static void main(String[] args) {
        Dog dog =new Dog();
       dog.name="旺财";
        dog.eatFood();

    }
}
